﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="@Url.Content("~/plugin/css/pikaday.css")">
<link rel="stylesheet" href="@Url.Content("~/plugin/css/site.css")">
<script src="@Url.Content("~/plugin/moment.min.js")"></script>
<script src="@Url.Content("~/plugin/pikaday.js")"></script>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>


@model PessModel.ExpertJudge

@{
    ViewBag.Title = "Create";
}

<h2>创建评委</h2>
<div id="operate">
    @Html.ActionLink("返回评委组详细信息", "Index", "ExpertGroup", new { activityID = (int)ViewBag.ActivityID }, null)
</div>

@using (Html.BeginForm())
{
    @Html.Hidden("SerialNumber", Model.SerialNumber)
    <fieldset class="fly-edit">
        <legend></legend>
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <div class="editor-label">
            @*@Html.LabelFor(model => model.SerialNumber)*@评委编号：
        </div>
        <div class="editor-field down">
            @Html.DisplayFor(model => model.SerialNumber)
            @Html.ValidationMessageFor(model => model.SerialNumber)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.RealName)*@真实姓名：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RealName)
            @Html.ValidationMessageFor(model => model.RealName)
        </div>
        <div class="editor-label">
            @*@Html.LabelFor(model => model.RealName)*@身份证号：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SSID)
            @Html.ValidationMessageFor(model => model.SSID)
        </div>
        @*<div class="editor-label">
                @Html.LabelFor(model => model.UserID)用户ID：
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.UserID)
                @Html.ValidationMessageFor(model => model.UserID)
            </div>*@
        <div class="editor-label">
            @*@Html.LabelFor(model => model.Email)*@邮箱：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Gender)*@性别:
        </div>
        <div class="editor-field short">
            @Html.DropDownList("Gender")
            @Html.ValidationMessageFor(model => model.Gender)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.BirthDate)*@出生日期:
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BirthDate)
            @Html.ValidationMessageFor(model => model.BirthDate)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Phone)*@电话：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.ContactAddress)*@联系地址：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContactAddress)
            @Html.ValidationMessageFor(model => model.ContactAddress)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.ZipCode)*@邮政编码：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ZipCode)
            @Html.ValidationMessageFor(model => model.ZipCode)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.ExpertGroupID)*@评委组：
        </div>
        <div class="editor-field" style="padding-top:4px;">
            @{
    var expertGroupSelectionModel = (PessMvc.Models.ExpertGroupSelectionModel)ViewBag.ExpertGroupSelection;
    var expertGroups = expertGroupSelectionModel.ExpertGroups;
            }
            @for (int i = 0; i < expertGroups.Count(); i++)
            {
                @Html.CheckBoxFor(m => expertGroups[i].IsSelected)
                @expertGroups[i].LocalName<span>&#8195;</span>
                @Html.HiddenFor(m => expertGroups[i].Id)
                @Html.HiddenFor(m => expertGroups[i].Name)
            }
        </div>
        @*<div class="editor-field down">

                @Html.Hidden("ExpertGroupID", (int)(ViewBag.ExpertGroupID))
                @Html.Label((string)ViewBag.ExpertGroupCallsign)

            </div>*@

        <div class="editor-btn">
            <input type="submit" value="新建" />
        </div>
    </fieldset>
}
<script>
        var pikaday1 = new Pikaday({
            field: document.getElementById('BirthDate'),
            firstDay: 1,
            minDate: new Date('1905-01-01'),
            maxDate: new Date('2025-12-31'),
            yearRange: [1905,2025],
            onSelect: function () { }
        });
</script>
@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
